Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range selection spanner delete #993

Merged

Conversation

BartlomiejLewandowski
Copy link

This PR changes conditions for the removal of spanners along when deleting a range.

Before, if the spanner overlapped with any part of the selection it was removed.
I have added the following conditions:

If the spanner is a slur, a removal of start or end segment also removes the spanner.
If the spanner is not a slur, it is only removed if the start segment is removed.

@BartlomiejLewandowski
Copy link
Author

Upon discussing this on IRC, spanners should exhibit the same behavior for copy and delete. Changing the current behavior to copy spanners without an end element looks difficult. In this case, I will change the delete tests to work the same for all spanners - both ends have to be in a selection to remove a spanner.

Slurs are removed when start or end segment are removed.
Other spanners are removed if the start segment is removed.
Added tests for range delete of spanners, and slurs.
lasconic added a commit that referenced this pull request Jun 30, 2014
…anner-delete

Range selection spanner delete
@lasconic lasconic merged commit e87d42a into musescore:master Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants